#pragma once
#include "plannintg_mcap_debug.pb.h"
#include <mcap/writer.hpp>
#define MCAP_ENV_OK
#ifdef MCAP_ENV_OK
class LogMcap {
public:
  LogMcap();
  ~LogMcap();
  plannintg_mcap_debug::plannintg_mcap_debug plannintg_mcap_debug;

  mcap::McapWriter writer;
  bool write_mcap_head();
  bool write_mcap_tail();

  mcap::Channel plannintg_mcap_debug_channel_;

private:
};
#else
class LogMcap {
  class LogMcap {
  public:
    LogMcap();
    ~LogMcap();
    plannintg_mcap_debug::plannintg_mcap_debug plannintg_mcap_debug;

    // mcap::McapWriter writer;
    // bool write_mcap_head();
    // bool write_mcap_tail();

    // mcap::Channel plannintg_mcap_debug_channel_;

  private:
  };
}
#endif